package com.ruoyi.web.controller.common.DTO;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
@TableName("s_common_file")
public class SCommonFile implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long fid;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 添加时间（上传时间）
     */
    private Date addTime;

    /**
     * 绝对路径或存储路径（本地路径、COS路径、OSS路径等）
     */
    private String filePath;

    // ===== Getter & Setter =====

    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    // ===== 可选：toString() =====
    @Override
    public String toString() {
        return "SCommonFile{" +
                "fid=" + fid +
                ", fileName='" + fileName + '\'' +
                ", addTime=" + addTime +
                ", filePath='" + filePath + '\'' +
                '}';
    }
}